// 1-A3 2-A4 4-A5 8-B4_JIS 16-B5 32-B4_ISO 64-B5_ISO 1024-其他纸张
export const paperSizeOptions = [
  {
    label: "A3",
    value: 4,
  },
  {
    label: "A4",
    value: 1,
  },
  {
    label: "A5",
    value: 8,
  },
  {
    label: "B4",
    value: 16,
  },
  {
    label: "B5",
    value: 2,
  },
];
// 1-单面 2-双面 4-小册子
export const printTypeOptions = [
  { value: 1, label: "单面" },
  { value: 2, label: "双面(长边翻转)" },
  {
    label: "双面(短边翻转)",
    value: 3,
  },
  { value: 4, label: "小册子" },
];
export const colorOptions = [
  { value: 1, label: "黑白" },
  { value: 2, label: "彩色" },
];
// 文件密级 1-公开 2-内部 3-秘密 4-机密 5-绝密
export const secretOptions = [
  { value: 1, label: "公开" },
  { value: 2, label: "内部" },
  { value: 3, label: "秘密" },
  { value: 4, label: "机密" },
  { value: 5, label: "绝密" },
];

export const pageSizeObject = () => {
  const obj = {};
  paperSizeOptions.forEach((item) => {
    (obj as any)[item.value] = item.label;
  });
  return obj;
};

export const printTypeObject = () => {
  const obj = {};
  printTypeOptions.forEach((item) => {
    (obj as any)[item.value] = item.label;
  });
  return obj;
};

export const colorOptionsObject = () => {
  const obj = {};
  colorOptions.forEach((item) => {
    (obj as any)[item.value] = item.label;
  });
  return obj;
};

export const secretOptionsObject = () => {
  const obj = {};
  secretOptions.forEach((item) => {
    (obj as any)[item.value] = item.label;
  });
  return obj;
};
